-
Notifications
You must be signed in to change notification settings - Fork 375
[Intel GPU] Extend TestQAT module with xpu testcases #3177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3177
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@liangan1 please review |
test/quantization/test_qat.py
Outdated
| SEED = 123 | ||
| GPU_DEVICES = (["cuda"] if torch.cuda.is_available() else []) + ( | ||
| ["xpu"] if torch.xpu.is_available() else [] | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CUDA and XPU is exclusive in a torch whl which means that it should not be a list. Besides, the GPU_DEVICES also involve a lot of changes in the following PRs. Suggest to use DEVICE directly.
|
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
This PR should depends on PR # PR##3249 to be triggered by "ciflow/xpu" |
| if torch.accelerator.is_available() | ||
| else None | ||
| ) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls use the utils func defined in #3335.
8c59e66 to
7948c74
Compare
d413980 to
5d86dd0
Compare
|
@pytorchbot rebase |
|
@agrabow pls rebase your code. |
Add xpu mode to tests from test_qat.py TestQAT module
5d86dd0 to
a8d6d03
Compare
Add xpu mode to tests from test_qat.py TestQAT module